import { Result, Button } from 'antd';
import { useNavigate } from 'react-router-dom';


function NotFound404() {
    const navigate = useNavigate()
    const handleClick = () => {
        navigate('/')
    }
    return <Result status={404} title="404" subTitle="您访问的页面走丢了" extra={
        <Button type='primary' onClick={handleClick}>返回首页</Button>
    } />
}

export default NotFound404